/*
 * Package il.ac.biu.cs.grossmm.impl.cpp
 * File CppManager.java
 * 
 * This is a part of presence service framework prototype. 
 * See javadoc for more information.
 *  
 * Copyright (C) 2006 Grossmann Mark
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.

 * You should have received a copy of the GNU Lesser General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 */
package il.ac.biu.cs.grossmm.impl.cpp;

import il.ac.biu.cs.grossmm.api.cpp.CppServiceConsumer;
import il.ac.biu.cs.grossmm.api.cpp.CppServiceManager;
import il.ac.biu.cs.grossmm.api.cpp.CppServiceProvider;
import il.ac.biu.cs.grossmm.api.flow.DataProcessorBase;
import il.ac.biu.cs.grossmm.api.keys.KeyPattern;

public class CppManager extends DataProcessorBase implements CppServiceManager {

	public CppManager()
	{
		super("CPP Manager");
	}

	public <T> CppServiceProvider<T> getServiceProvider(Class<T> tClass,
		CppServiceConsumer<T> consumer, KeyPattern pattern)
	{
		return new InmemoryProvider<T>(adm, pattern, tClass, consumer);
	}

	public <T> CppServiceProvider<T> getServiceProvider(Class<T> tClass,
		CppServiceConsumer<T> consumer, KeyPattern pattern, String identifier)
	{
		// TODO Implement getServiceProvider
		// return null;
		throw new RuntimeException("Not implemented");
	}

	public void removeServiceProvider(String identifier)
	{
		// TODO Implement removeServiceProvider
		// 
		throw new RuntimeException("Not implemented");
	}

}
